﻿#ifndef SYSTEMFORM_H
#define SYSTEMFORM_H


#include <From/camerasetform.h>
#include <From/motorform.h>
#include <QWidget>
#include <Common/common.h>
#include <Dlg/gradeconfigdialog.h>

namespace Ui {
class SystemForm;
}

class SystemForm : public QWidget
{
    Q_OBJECT

public:
    explicit SystemForm(QWidget *parent = nullptr);
    ~SystemForm();

    void SwitchFrom(int index);
signals:

    void sigIndex(int nIndex);
private slots:


    void on_Bt_machine_clicked();

    void on_Bt_camera_clicked();

    void on_Bt_Grade_clicked();

private:
    Ui::SystemForm *ui;


    QWidget* qDlg;
public:
    MotorForm* m_pMotor;
    CameraSetForm* m_pSetCamera;
    GradeRuleConfig m_dRuleConfig;
    GradeConfigDialog* m_pGradeConfig;
};

#endif // SYSTEMFORM_H
